home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / sparcmgr / demo1.zoo / demo / plot / Makefile next >
Encoding:
Makefile  |  1989-01-24  |  1.5 KB  |  67 lines

  1. #                        Copyright (c) 1987 Bellcore
  2. #                            All Rights Reserved
  3. #       Permission is granted to copy or use this program, EXCEPT that it
  4. #       may not be sold for profit, the copyright notice must be reproduced
  5. #       on copies, and credit should be given to Bellcore where it is due.
  6. #       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  7.  
  8. #    $Header: Makefile,v 4.1 88/06/21 14:03:05 bianchi Exp $
  9. #    $Source: /tmp/mgrsrc/demo/plot/RCS/Makefile,v $
  10.  
  11. INSROOT=/usr/mgr
  12. START=.
  13. MGR=../..
  14. MGRLIB=$(MGR)/lib/libmgr.a
  15. MGRINCL=$(MGR)/lib
  16. #
  17. BIN=$(INSROOT)/bin
  18. MAN=$(INSROOT)/man
  19. LIB=$(INSROOT)/lib
  20. CPIO=plot.cpio
  21. CFLAGS=    -O -I$(MGRINCL)
  22. ALL=    libmgrplot.a mgrplot 
  23.  
  24. CFILES= subs.c mgrplot.c
  25. DOCS= mgrplot.1g
  26. OTHER= Makefile README plot.ex
  27.  
  28. all small:    $(ALL)
  29.  
  30. fast:        $(CFILES)
  31.         cc -c $(CFLAGS) $(CFILES)
  32.         make all
  33.  
  34. libmgrplot.a:    subs.o $(MGRLIB)
  35.         ar r libmgrplot.a subs.o
  36.         ranlib libmgrplot.a
  37.  
  38. mgrplot:    mgrplot.o libmgrplot.a $(MGRLIB)
  39.         cc -o mgrplot  mgrplot.o libmgrplot.a $(MGRLIB) -lm
  40.  
  41. install smallinstall:    all $(BIN) $(LIB) $(MAN) $(MAN)/man1
  42.         chmod 755 mgrplot
  43.         rm -f $(BIN)/mgrplot
  44.         cp mgrplot $(BIN)
  45.         rm -f $(LIB)/libmgrplot.a
  46.         cp libmgrplot.a $(LIB)
  47.         ranlib $(LIB)/libmgrplot.a
  48.         cd $(MAN)/man1;  rm -f $(DOCS)
  49.         cp $(DOCS) $(MAN)/man1
  50.  
  51. $(BIN) $(LIB) $(MAN) $(MAN)/man1:
  52.         mkdir $@
  53.  
  54. clean:
  55.         rm -f *.o
  56.  
  57. clobber:
  58.         rm -f $(ALL)
  59.  
  60. list:
  61.     @for i in $(CFILES) $(HFILES) $(DOCS) $(OTHER); do \
  62.         echo "$(START)/$$i"; \
  63.     done    
  64.  
  65. cpio:
  66.     make -s list | cpio -ocv > $(CPIO)
  67.